package LEI;

public class Simulator {
    Animal animal;
    public void playSound(Animal animal){
        this.animal = animal;
        animal.cry();
        System.out.println("模拟的是"+animal.getAnimalName()+"的叫声");
        System.out.println("它的叫声是"+animal.getCry());
    }


}
